<?php
/**
 * *
 *  * ============================================================================
 *  * Created by PhpStorm.
 *  * User: Ice
 *  * 邮箱: ice@sbing.vip
 *  * 网址: https://sbing.vip
 *  * Date: 2019/9/19 下午3:33
 *  * ============================================================================.
 */

namespace app\admin\command;

use app\common\service\RedisMake;
use think\console\Input;
use think\facade\Config;
use think\console\Output;
use think\console\Command;


class Redis extends Command
{

    public static $SUCCESS_CODE = 200;
    public static $ERROR_CODE = -1;

    protected function configure()
    {
        $site = Config::get('site');
        $this
            ->setName('redis')
            ->setDescription('Build swoole from controller');
    }

    protected function execute(Input $input, Output $output)
    {
        $redis = RedisMake::getRedis();
        $roomData =$redis->flushAll();
    }
}
